//
// Created by BqLin on 2020/10/16.
// Copyright (c) 2020 BqLin. All rights reserved.
//

#import "PhotoFrameUpdater.h"
#import <Flutter/Flutter.h>

@implementation PhotoFrameUpdater
- (instancetype)initWithRegistry:(NSObject<FlutterTextureRegistry> *)registry {
    NSAssert(self, @"super init cannot be nil");
    if (self == nil) return nil;
    _registry = registry;
    return self;
}

- (void)update {
    [_registry textureFrameAvailable:_textureId];
}
@end